import config from "@/config"
import http from "@/utils/request"

export default {
  getShorts: {
    url: `${config.API_URL}/ms/cms/short/drama/list`,
    name: "获取短剧列表",
    get: async function(params){
      return await http.get(this.url,params)
    }
  },
  shortSrtDetail: {
    url: `${config.API_URL}/ms/cms/short/srt/info/`,
    name: "获取短剧字幕详情",
    get: async function(params){
      return await http.get(this.url+params)
    }
  },
  getExploreSrtDetail: {
    url: `${config.API_URL}/ms/cms/fall/srt/info/`,
    name: "获取Explore字幕详情",
    get: async function(id, params){
      return await http.get(this.url+id, params)
    }
  },
  postAiSrt: {
    url: `${config.API_URL}/ms/video/srt/generate`,
    name: "ai字幕",
    post: async function(data){
      return await http.post(this.url,data)
    }
  },
  postExploreAiSrt: {
    url: `${config.API_URL}/ms/video/fallSrt/generate`,
    name: "explore AI字幕",
    post: async function(data){
      return await http.post(this.url, data)
    }
  },
  uploadSrtRequest: {
    url: `${config.API_URL}/ms/cms/short/upload/srt`,
    name: "上传字幕",
    post: async function(data){
      return await http.post(this.url,data)
    }
  },
  uploadExploreSrtRequest: {
    url: `${config.API_URL}/ms/cms/fall/upload/srt`,
    name: "上传explore字幕",
    post: async function(data){
      return await http.post(this.url, data)
    }
  },
  
  
}